package com.dy.lock.screen.component.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

import com.dy.lock.screen.component.MaterialCommentComponent;
import com.dy.lock.screen.constants.Constant;
import com.dy.lock.screen.constants.TransmissionCode;
import com.dy.lock.screen.exception.ServerDisponseException;
import com.dy.lock.screen.jersey.api.EasemobMessages;
import com.dy.lock.screen.pojo.CommonCommentInfo;
import com.dy.lock.screen.pojo.CustomerAttentionInfo;
import com.dy.lock.screen.pojo.CustomerLikeInfo;
import com.dy.lock.screen.pojo.CustomerMarkInfo;
import com.dy.lock.screen.pojo.MaterialCollectInfo;
import com.dy.lock.screen.pojo.MaterialCommentInfo;
import com.dy.lock.screen.pojo.MaterialInfo;
import com.dy.lock.screen.pojo.UserInfo;
import com.dy.lock.screen.scoket.Head;
import com.dy.lock.screen.service.CommonCommentService;
import com.dy.lock.screen.service.CustomerAttentionService;
import com.dy.lock.screen.service.CustomerLikeService;
import com.dy.lock.screen.service.CustomerMarkRelationService;
import com.dy.lock.screen.service.MaterialCollectService;
import com.dy.lock.screen.service.MaterialCommentService;
import com.dy.lock.screen.service.MaterialService;
import com.dy.lock.screen.service.UserService;
import com.dy.lock.screen.utils.CommonUtil;
import com.dy.lock.screen.vo.EasemobVo;
import com.dy.lock.screen.vo.MaterialCommentResultVo;
import com.dy.lock.screen.vo.MaterialCommentVo;
import com.google.gson.Gson;

@Component("materialCommentComponent")
public class MaterialCommentComponentImpl implements MaterialCommentComponent {
	private static final Logger log = Logger
			.getLogger(MaterialCommentComponentImpl.class);
	private Gson gson;

	@Resource(name = "materialCommentService")
	private MaterialCommentService materialCommentService;
	@Resource(name = "customerLikeService")
	private CustomerLikeService customerLikeService;
	@Resource(name = "commonCommentService")
	private CommonCommentService commonCommentService;
	@Resource(name = "userService")
	private UserService userService;
	@Resource(name = "customerAttentionService")
	private CustomerAttentionService customerAttentionService;

	@Resource(name = "materialCollectService")
	private MaterialCollectService materialCollectService;
	@Resource(name = "materialService")
	private MaterialService materialService;
	@Resource(name = "customerMarkRelationService")
	private CustomerMarkRelationService customerMarkRelationService;

	public MaterialCommentComponentImpl() {
		gson = CommonUtil.gson();
	}

	@Override
	public MaterialCommentResultVo list(String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		MaterialCommentResultVo resultVo = new MaterialCommentResultVo();
		if (vo != null) {
			Integer currentPage = vo.getPageIndex();
			Integer pageSize = vo.getPageCount();
			Integer pageStart = 1;
			Integer pageEnd = 10;
			if (currentPage != null && pageSize != null) {
				pageStart = (currentPage - 1) * pageSize + 1;
				pageEnd = currentPage * pageSize;
			}
			Map<String, Object> paraMap = new HashMap<String, Object>();
			paraMap.put("pageStart", pageStart);
			paraMap.put("pageEnd", pageEnd);
			paraMap.put("materialId", vo.getMaterialId());
			paraMap.put("isDelete", Constant.IS_NOT_DELETE);
			List<MaterialCommentInfo> materialCommentList = this.materialCommentService
					.queryPage(paraMap);
			Integer commentNum = this.materialCommentService
					.queryCount(paraMap);
			resultVo.setMaterialCommentNum(commentNum);
			Map<String, Object> para = new HashMap<String, Object>();
			para.put("materialId", vo.getMaterialId());
			Integer likeNum = this.customerLikeService.queryCount(para);
			resultVo.setMaterialLikeNum(likeNum);
			MaterialCollectInfo collectInfo = new MaterialCollectInfo();
			collectInfo.setUserId(vo.getUserId());
			collectInfo.setMaterialId(vo.getMaterialId());
			MaterialCollectInfo cli = this.materialCollectService
					.queryByMidAndCid(collectInfo);
			if (cli != null) {
				resultVo.setCollect(true);
			}
			CustomerLikeInfo likeInfo = new CustomerLikeInfo();
			likeInfo.setUserId(vo.getUserId());
			likeInfo.setMaterialId(vo.getMaterialId());
			likeInfo.setLikeType(Constant.MATERIAL_LIKE);
			CustomerLikeInfo likeIn = this.customerLikeService
					.queryByMidAndCid(likeInfo);
			if (likeIn != null) {
				resultVo.setLike(true);
			}
			MaterialInfo mi = this.materialService.queryByPrimaryKey(vo
					.getMaterialId());
			if (mi != null) {
				resultVo.setMaterialMain(mi.getMaterialMain());
			}
			para = new HashMap<String, Object>();
			para.put("isDelete", Constant.IS_NOT_DELETE);
			// String materialMain = null;
			if (materialCommentList != null && !materialCommentList.isEmpty()) {
				// materialMain = materialCommentList.get(0).getMaterialMain();
				// resultVo.setMaterialMain(materialMain);
				for (MaterialCommentInfo info : materialCommentList) {
					if (StringUtils.isNotBlank(info.getHeaderPath())) {
						info.setHeaderPath(CommonUtil
								.getUrlPrefixApi("photo.url.prefix.path.api")
								+ info.getHeaderPath());
					}
					if (StringUtils.isNotBlank(info.getUserName())) {
						info.setUserName(info.getUserName());
					} else {
						info.setUserName(info.getUserId());
					}
					info.setMaterialPic(CommonUtil
							.getUrlPrefixApi("photo.url.prefix.path")
							+ info.getMaterialPic());
					info.setCommentPicPath(CommonUtil.splitToString(info
							.getCommentPicPath(), ";"));
					likeInfo.setCommentId(info.getCommentId());
					likeInfo.setLikeType(Constant.MATERIAL_COMMENT_LIKE);
					CustomerLikeInfo commentLikeIn = this.customerLikeService
							.queryByMidAndCid(likeInfo);
					if (commentLikeIn != null) {
						info.setLike(true);
					}
					List<CustomerMarkInfo> markInfos = this.customerMarkRelationService
							.queryListByCid(info.getUserId());
					info.setMarkInfoList(markInfos);
					// Integer commonCommentNum = this.commonCommentService
					// .queryCount(para);
					// info.setCommonCommentNum(commonCommentNum);
					para.put("commentId", info.getCommentId());
					para.put("pageEnd", 3);
					List<CommonCommentInfo> commonCommentList = this.commonCommentService
							.queryByCommentId(para);
					if (commonCommentList != null
							&& !commonCommentList.isEmpty()) {
						for (CommonCommentInfo cInfo : commonCommentList) {
							String userId = cInfo.getUserId();
							UserInfo userInfo = this.userService.queryByUserId(
									userId, head);
							String username = userInfo.getUserName();
							if (StringUtils.isNotBlank(username)) {
								cInfo.setUserName(username);
							} else {
								cInfo.setUserName(userId);
							}
							cInfo
									.setHeaderPath(CommonUtil
											.getUrlPrefixApi("photo.url.prefix.path.api")
											+ userInfo.getHeaderPath());
							String atIds = cInfo.getHaveAt();
							List<UserInfo> userList = CommonUtil
									.getUserListByUserIds(userService, atIds);
							cInfo.setAtUserList(userList);
							List<CustomerMarkInfo> markIns = this.customerMarkRelationService
									.queryListByCid(cInfo.getUserId());
							cInfo.setMarkInfoList(markIns);

						}
					}
					info.setCommonCommentList(commonCommentList);
				}
				resultVo.setMaterialCommentList(materialCommentList);
				return resultVo;
			} else {
				return resultVo;
			}
		} else {
			log.info("requestId:" + head.getRequestId() + ",获取素材评论列表时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

	@Override
	public boolean uploadMaterialComment(String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		if (vo != null) {
			MaterialCommentInfo macInfo = new MaterialCommentInfo();
			macInfo.setMaterialId(vo.getMaterialId());
			macInfo.setUserId(vo.getUserId());
			macInfo.setCommentContent(vo.getCommentContent());
			macInfo.setCommentPicPath(vo.getCommentPicPath());
			int re = this.materialCommentService.save(macInfo);
			if (re > 0) {
				CustomerAttentionInfo attInfo = new CustomerAttentionInfo();
				attInfo.setBeConcernedId(vo.getUserId());
				List<String> sendUserIds = this.customerAttentionService
						.queryByAidOrBeid(attInfo);
				UserInfo userInfo = this.userService.queryByUserId(vo
						.getUserId(), head);
				String username = userInfo.getUserName();
				if (StringUtils.isBlank(username)) {
					username = vo.getUserId();
				}
				EasemobVo easemobVo = new EasemobVo();
				easemobVo.setUserId(vo.getUserId());
				easemobVo.setUserName(username);
				easemobVo
						.setMessageType(Constant.MESSAGE_TYPE_MATERIAL_COMMENT);
				easemobVo.setMessageTime(new Date());
				List<String> failedUserId = EasemobMessages.sendMessages(vo
						.getUserId(), sendUserIds, gson.toJson(easemobVo));
				if (failedUserId != null && !failedUserId.isEmpty()) {
					log
							.info("requestId:" + head.getRequestId()
									+ ",上传文章评论时，发送消息的失败用户ID："
									+ failedUserId.toString());
				}
				return true;
			} else {
				log.info("requestId:" + head.getRequestId()
						+ ",上传文章评论时，保存信息异常。");
				throw new ServerDisponseException(
						TransmissionCode.OPERATOR_EXCEPTION.getCode(),
						TransmissionCode.OPERATOR_EXCEPTION.getMessage());
			}
		} else {
			log.info("requestId:" + head.getRequestId() + ",上传文章评论时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

	@Override
	public List<MaterialCommentInfo> getAttentionCustomerMaterialCommentList(
			String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		if (vo != null) {
			CustomerAttentionInfo attention = new CustomerAttentionInfo();
			attention.setAttentionId(vo.getUserId());
			List<String> attentionIdList = this.customerAttentionService
					.queryByAidOrBeid(attention);
			if (attentionIdList != null && !attentionIdList.isEmpty()) {
				Integer currentPage = vo.getPageIndex();
				Integer pageSize = vo.getPageCount();
				Integer pageStart = 1;
				Integer pageEnd = 10;
				if (currentPage != null && pageSize != null) {
					pageStart = (currentPage - 1) * pageSize + 1;
					pageEnd = currentPage * pageSize;
				}
				Map<String, Object> paraMap = new HashMap<String, Object>();
				paraMap.put("pageStart", pageStart);
				paraMap.put("pageEnd", pageEnd);
				paraMap.put("userIds", attentionIdList);
				paraMap.put("isDelete", Constant.IS_NOT_DELETE);
				List<MaterialCommentInfo> materialCommentList = this.materialCommentService
						.queryPage(paraMap);

				Map<String, Object> para = new HashMap<String, Object>();
				para.put("isDelete", Constant.IS_NOT_DELETE);
				if (materialCommentList != null
						&& !materialCommentList.isEmpty()) {
					for (MaterialCommentInfo mcInfo : materialCommentList) {
						if (StringUtils.isNotBlank(mcInfo.getHeaderPath())) {
							mcInfo
									.setHeaderPath(CommonUtil
											.getUrlPrefixApi("photo.url.prefix.path.api")
											+ mcInfo.getHeaderPath());
						}
						if (StringUtils.isNotBlank(mcInfo.getUserName())) {
							mcInfo.setUserName(mcInfo.getUserName());
						} else {
							mcInfo.setUserName(mcInfo.getUserId());
						}
						mcInfo.setCommentPicPath(CommonUtil.splitToString(
								mcInfo.getCommentPicPath(), ";"));
						mcInfo.setMaterialPic(CommonUtil
								.getUrlPrefixApi("photo.url.prefix.path")
								+ mcInfo.getMaterialPic());
						List<CustomerMarkInfo> markIns = this.customerMarkRelationService
								.queryListByCid(mcInfo.getUserId());
						mcInfo.setMarkInfoList(markIns);
						para.put("commentId", mcInfo.getCommentId());
						// Integer commonCommentNum = this.commonCommentService
						// .queryCount(para);
						// mcInfo.setCommonCommentNum(commonCommentNum);
						para.put("pageEnd", 3);
						List<CommonCommentInfo> commonCommentList = this.commonCommentService
								.queryByCommentId(para);
						if (commonCommentList != null
								&& !commonCommentList.isEmpty()) {
							for (CommonCommentInfo cInfo : commonCommentList) {
								String userId = cInfo.getUserId();
								UserInfo userInfo = this.userService
										.queryByUserId(userId, head);
								String username = userInfo.getUserName();
								if (StringUtils.isNotBlank(username)) {
									cInfo.setUserName(username);
								} else {
									cInfo.setUserName(userId);
								}
								cInfo
										.setHeaderPath(CommonUtil
												.getUrlPrefixApi("photo.url.prefix.path.api")
												+ userInfo.getHeaderPath());
								String atIds = cInfo.getHaveAt();
								List<UserInfo> userList = CommonUtil
										.getUserListByUserIds(userService,
												atIds);
								cInfo.setAtUserList(userList);
								List<CustomerMarkInfo> markInfos = this.customerMarkRelationService
										.queryListByCid(cInfo.getUserId());
								cInfo.setMarkInfoList(markInfos);
							}
						}
						mcInfo.setCommonCommentList(commonCommentList);
					}
				}
				return materialCommentList;
			} else {
				return new ArrayList<MaterialCommentInfo>();
			}
		} else {
			log.info("requestId:" + head.getRequestId()
					+ ",获取客户关注的所有客户的所有评论时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

	@Override
	public List<MaterialCommentInfo> getPersonalMaterialCommentList(
			String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		if (vo != null) {
			Integer currentPage = vo.getPageIndex();
			Integer pageSize = vo.getPageCount();
			Integer pageStart = 1;
			Integer pageEnd = 10;
			if (currentPage != null && pageSize != null) {
				pageStart = (currentPage - 1) * pageSize + 1;
				pageEnd = currentPage * pageSize;
			}
			Map<String, Object> paraMap = new HashMap<String, Object>();
			paraMap.put("pageStart", pageStart);
			paraMap.put("pageEnd", pageEnd);
			paraMap.put("userId", vo.getBeViewedId());
			paraMap.put("isDelete", Constant.IS_NOT_DELETE);
			List<MaterialCommentInfo> materialCommentList = this.materialCommentService
					.queryPage(paraMap);
			Map<String, Object> para = new HashMap<String, Object>();
			para.put("isDelete", Constant.IS_NOT_DELETE);
			if (materialCommentList != null && !materialCommentList.isEmpty()) {
				for (MaterialCommentInfo info : materialCommentList) {
					if (StringUtils.isNotBlank(info.getHeaderPath())) {
						info.setHeaderPath(CommonUtil
								.getUrlPrefixApi("photo.url.prefix.path.api")
								+ info.getHeaderPath());
					}
					if (StringUtils.isNotBlank(info.getUserName())) {
						info.setUserName(info.getUserName());
					} else {
						info.setUserName(info.getUserId());
					}
					info.setCommentPicPath(CommonUtil.splitToString(info
							.getCommentPicPath(), ";"));
					info.setMaterialPic(CommonUtil
							.getUrlPrefixApi("photo.url.prefix.path")
							+ info.getMaterialPic());
					List<CustomerMarkInfo> markInfos = this.customerMarkRelationService
							.queryListByCid(info.getUserId());
					info.setMarkInfoList(markInfos);
					para.put("commentId", info.getCommentId());
					Integer commonCommentNum = this.commonCommentService
							.queryCount(para);
					info.setCommonCommentNum(commonCommentNum);
					para.put("pageEnd", 3);
					List<CommonCommentInfo> commonCommentList = this.commonCommentService
							.queryByCommentId(para);
					if (commonCommentList != null
							&& !commonCommentList.isEmpty()) {
						for (CommonCommentInfo cInfo : commonCommentList) {
							String userId = cInfo.getUserId();
							UserInfo userInfo = this.userService.queryByUserId(
									userId, head);
							String username = userInfo.getUserName();
							if (StringUtils.isNotBlank(username)) {
								cInfo.setUserName(username);
							} else {
								cInfo.setUserName(userId);
							}
							cInfo
									.setHeaderPath(CommonUtil
											.getUrlPrefixApi("photo.url.prefix.path.api")
											+ userInfo.getHeaderPath());
							String atIds = cInfo.getHaveAt();
							List<UserInfo> userList = CommonUtil
									.getUserListByUserIds(userService, atIds);
							cInfo.setAtUserList(userList);
							List<CustomerMarkInfo> markIns = this.customerMarkRelationService
									.queryListByCid(cInfo.getUserId());
							cInfo.setMarkInfoList(markIns);
						}
					}
					info.setCommonCommentList(commonCommentList);
				}
				return materialCommentList;
			} else {
				return new ArrayList<MaterialCommentInfo>();
			}

		} else {
			log.info("requestId:" + head.getRequestId()
					+ ",获取个人主页下的个人文章评论列表时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

	@Override
	public MaterialCommentInfo getMaterialCommentDetail(String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		if (vo != null) {
			String commentId = vo.getCommentId();
			Map<String, Object> paraMap = new HashMap<String, Object>();
			paraMap.put("commentId", commentId);
			paraMap.put("isDelete", Constant.IS_NOT_DELETE);
			MaterialCommentInfo info = this.materialCommentService
					.queryCommentDetail(paraMap);
			// paraMap = new HashMap<String, Object>();
			// paraMap.put("materialId", info.getMaterialId());
			// Integer commentNum = this.materialCommentService
			// .queryCount(paraMap);
			// info.setCommentNum(commentNum);
			Map<String, Object> para = new HashMap<String, Object>();
			para.put("commentId", commentId);
			Integer likeNum = this.customerLikeService.queryCount(para);
			info.setLikeNum(likeNum);
			if (StringUtils.isNotBlank(info.getHeaderPath())) {
				info.setHeaderPath(CommonUtil
						.getUrlPrefixApi("photo.url.prefix.path.api")
						+ info.getHeaderPath());
			}
			if (StringUtils.isNotBlank(info.getUserName())) {
				info.setUserName(info.getUserName());
			} else {
				info.setUserName(info.getUserId());
			}
			info.setCommentPicPath(CommonUtil.splitToString(info
					.getCommentPicPath(), ";"));
			info.setMaterialPic(CommonUtil
					.getUrlPrefixApi("photo.url.prefix.path")
					+ info.getMaterialPic());
			List<CustomerMarkInfo> markIns = this.customerMarkRelationService
					.queryListByCid(info.getUserId());
			info.setMarkInfoList(markIns);
			para.put("isDelete", Constant.IS_NOT_DELETE);
			para.put("commentId", info.getCommentId());
			Integer commonCommentNum = this.commonCommentService
					.queryCount(para);
			info.setCommonCommentNum(commonCommentNum);
			CustomerLikeInfo likeInfo = new CustomerLikeInfo();
			likeInfo.setUserId(vo.getUserId());
			likeInfo.setCommentId(vo.getCommentId());
			likeInfo.setLikeType(Constant.MATERIAL_COMMENT_LIKE);
			CustomerLikeInfo cli = this.customerLikeService
					.queryByMidAndCid(likeInfo);
			if (cli != null) {
				info.setLike(true);
			}
			// 赞列表，返回前五项
			Map<String, Object> likepara = new HashMap<String, Object>();
			likepara.put("pageStart", 1);
			likepara.put("pageEnd", 5);
			if (StringUtils.isNotBlank(commentId)) {
				likepara.put("commentId", commentId);
			}
			List<CustomerLikeInfo> likeList = this.customerLikeService
					.queryPage(likepara);
			if (likeList != null && !likeList.isEmpty()) {
				for (CustomerLikeInfo likeInf : likeList) {
					if (StringUtils.isNoneBlank(likeInf.getHeaderPath())) {
						likeInf.setHeaderPath(CommonUtil
								.getUrlPrefixApi("photo.url.prefix.path.api")
								+ likeInf.getHeaderPath());
					}
					likeInf.setMaterialPic(CommonUtil
							.getUrlPrefixApi("photo.url.prefix.path")
							+ likeInf.getMaterialPic());
				}
			}

			info.setLikeList(likeList);
			List<CommonCommentInfo> commonCommentList = this.commonCommentService
					.queryByCommentId(para);
			if (commonCommentList != null && !commonCommentList.isEmpty()) {
				for (CommonCommentInfo cInfo : commonCommentList) {
					String userId = cInfo.getUserId();
					UserInfo userInfo = this.userService.queryByUserId(userId,
							head);
					String username = userInfo.getUserName();
					if (StringUtils.isNotBlank(username)) {
						cInfo.setUserName(username);
					} else {
						cInfo.setUserName(userId);
					}
					if (StringUtils.isNoneBlank(userInfo.getHeaderPath())) {
						cInfo.setHeaderPath(CommonUtil
								.getUrlPrefixApi("photo.url.prefix.path.api")
								+ userInfo.getHeaderPath());
					}
					String atIds = cInfo.getHaveAt();
					List<UserInfo> userList = CommonUtil.getUserListByUserIds(
							userService, atIds);
					cInfo.setAtUserList(userList);
					List<CustomerMarkInfo> markInfos = this.customerMarkRelationService
							.queryListByCid(cInfo.getUserId());
					cInfo.setMarkInfoList(markInfos);
				}
			}
			info.setCommonCommentList(commonCommentList);
			return info;
		} else {
			log.info("requestId:" + head.getRequestId() + ",获取单个逗评详情时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

	@Override
	public boolean deleteMaterialComment(String body, Head head) {
		MaterialCommentVo vo = gson.fromJson(body, MaterialCommentVo.class);
		if (vo != null) {
			String userId = vo.getUserId();
			String commentId = vo.getCommentId();
			MaterialCommentInfo mInfo = new MaterialCommentInfo();
			mInfo.setUserId(userId);
			mInfo.setCommentId(commentId);
			mInfo.setIsDelete(Constant.IS_DELETE);
			MaterialCommentInfo minfo = this.materialCommentService
					.queryByPrimaryKey(commentId);
			if (minfo != null && userId.equals(minfo.getUserId())) {
				int res = this.materialCommentService.falseDelete(mInfo);
				if (res >= 0) {
					CommonCommentInfo commInfo = new CommonCommentInfo();
					commInfo.setCommentId(commentId);
					commInfo.setIsDelete(Constant.IS_DELETE);
					this.commonCommentService.falseDelete(commInfo);
					return true;
				} else {
					throw new ServerDisponseException(
							TransmissionCode.OPERATOR_EXCEPTION.getCode(),
							TransmissionCode.OPERATOR_EXCEPTION.getMessage());
				}
			} else {
				throw new ServerDisponseException(
						TransmissionCode.DO_NOT_DELETE_OTHER_USER_MATERIAL_COMMENT
								.getCode(),
						TransmissionCode.DO_NOT_DELETE_OTHER_USER_MATERIAL_COMMENT
								.getMessage());
			}
		} else {
			log.info("requestId:" + head.getRequestId() + ",删除逗评详情时，报文解析异常。");
			throw new ServerDisponseException(TransmissionCode.ERROR_ADJUST
					.getCode(), TransmissionCode.ERROR_ADJUST.getMessage());
		}
	}

}
